<?php

$config = config::instance();
$assets = assets::instance();

$host = $config->host;
$cmeta = $config->meta;

$sitetitle = !empty($meta['sitetitle']) ? $meta['sitetitle'] : '';
if(empty($sitetitle)) $sitetitle = $cmeta['title'];
if(empty($sitetitle)) $sitetitle = __('Site') . ' ' . $host;

$title		= !empty($meta['title']) ? sprintf('%s%s', $meta['title'], (!empty($cmeta['title'])?" — ".$sitetitle:'')) : $sitetitle;
$keywords	= !empty($meta['keywords']) ? $meta['keywords'] : (isset($cmeta['keywords']) ? $cmeta['keywords'] : '');
$description = !empty($cmeta['description']) ? $cmeta['description'] : '';
$copyright	= !empty($cmeta['copyright']) ? $cmeta['copyright'] : '';

if(empty($cmeta['author']))
	$cmeta['author'] = 'webmaster@'.$host;

$pagetitle	= isset( $meta['title'] ) ? $meta['title'] : $title;
$current_url = current_url(1);

$production_host = $config->production_host;

